﻿#include <iostream>
#include "NDOLinkedList.h"
#include <ctime>
using namespace std;

int main()
{
    srand((int)time(0));
    int* a1 = initialRandomArray(6);
    int* a2 = initialRandomArray(6);
    cout << "两个数组的初始化情况：" << endl;
    displayArray(a1,6);
    displayArray(a2,6);
    NDOLinkedList n1 = NDOLinkedList(a1, 6);
    NDOLinkedList n2 = NDOLinkedList(a2, 6);
    cout << "两个数据结构的初始化情况：" << endl;
    n1.displayList();
    n2.displayList();
    NDOLinkedList* t = n1.merge(&n2);
    cout << "两个数据结构的合并情况：" << endl;
    t->displayList();
    delete t;
}

